package com.caigou.modules.center.adapter

import com.caigou.modules.center.R
import com.caigou.modules.center.bean.ScoreDetailItemBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/11/09
 */
class ScoreDetailAdapter(dataset: MutableList<ScoreDetailItemBean>) :
    BaseQuickAdapter<ScoreDetailItemBean, BaseViewHolder>(R.layout.item_score_detail_list, dataset),
    LoadMoreModule {
    override fun convert(holder: BaseViewHolder, item: ScoreDetailItemBean) {
        holder.setText(R.id.item_score_detail_tv_title, item.medalName)
        holder.setText(R.id.item_score_detail_tv_remark, item.remark)
        holder.setText(R.id.item_score_detail_tv_num, "+${item.score}")
        holder.setText(R.id.item_score_detail_tv_time, item.createTime)
    }
}